home *** CD-ROM | disk | FTP | other *** search
- -----------------------------------------------------------------------------
-
- Name: XMSEMS.MOD
- Auth: Tolkien 1@3456
- Date: December 13, 1991
- Info: WWIV, v4.20 (may work with prior releases though)
- Diff: Easy
- Req : BC++ 2.0 (unsure as to whether TC++ supports the two necessary
- functions (_OvrInitExt() and _OvrInitEms())
-
- Description: This modification will allow WWIV to make use of extended
- memory for its overlays. Failing the detection of XMS
- memory, it will try to grab 512K of expanded memory for
- the same purpose. If you don't have either type of memory
- then do not install this modification.
-
- -----------------------------------------------------------------------------
-
- Step One:
-
- Load up XINIT.C and search for these lines:
-
- screenbottom=defscreenbottom; /* Search */
- screenlen=160*(screenbottom+1); /* Search */
-
- Immediately after those two lines, add these two lines:
-
- if (_OvrInitExt(0,0)!=0) /* Add */
- (_OvrInitEms(0,0,32)); /* Add */
-
- -----------------------------------------------------------------------------
-
- Step Two:
-
- Now you have some choices. I recommend overlaying everything except COM.C,
- CONIO.C, and UTILITY.C (and ESM.C if you are using ESM v2.00 or STRINGS.C
- if you are using a prior version). You may find that this severely degrades
- performance and you may notice no such thing.
-
- If it *does* degrade performance, then you can either un-overlay one or
- more of the following: BBSUTL.C, BBSUTL1.C, MSGBASE.C, and/or MSGBASE1.C.
- A better solution is to move the printfile() function to the bottom of
- COM.C (which shouldn't ever be overlaid), as well as checka() and pla(). This
- is what I've done and the board works just fine, and I have gained 48K of
- memory at runtime, which isn't a *huge* amount but is most assuredly a
- noticeable amount and was definitely worthwhile.
-
- Moving those functions to the bottom of COM.C is a simple matter of block-
- copying each function from its original source file to the bottom of
- COM.C, deleting it from the original file, and updating FCNS.H to reflect
- the change. If you can't do this part on your own, then you should probably
- not be messing around with the code yourself anyway.
-
- -----------------------------------------------------------------------------
-
- Step Three:
-
- Recompile and enjoy the extra memory.
-
- -----------------------------------------------------------------------------
-